package com.lemon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lemon.domain.Warehouse;
import com.lemon.domain.pageParam.WarehousePageParam;
import com.lemon.domain.vo.WarehouseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WarehouseMapper extends BaseMapper<Warehouse> {
    List<Warehouse> getPage(WarehousePageParam param);

    @Select("select id,name from warehouse")
    List<WarehouseVo> getWarehouseList();
}
